package com.axin.web.controller;

import com.axin.blog.api.RemoteTagService;
import com.axin.common.core.domain.web.AjaxResult;
import com.axin.web.annotation.IgnoreAuth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 分类 web接口
 *
 * @Author axin
 * @Date 2021/11/2 21:35
 **/
@RestController
@RequestMapping("/tag")
public class ApiTagController {


    @Autowired
    private RemoteTagService remoteTagService;

    /**
     * 查询分类归档
     *
     * @return
     */
    @IgnoreAuth
    @GetMapping("/getTagList")
    public AjaxResult getCategoryList() {
        return remoteTagService.getWebTagList();
    }

}
